package com.yyk.yykywd

import org.junit.Test

import org.junit.Assert.*
import java.lang.StringBuilder

/**
 * 文件描述：
 * Created by guo on 2019-12-24.
 */
class UtilsKtTest {

    @Test
    fun listToString() {
        val list = listOf("我", "你")
        val s = listToString(list as MutableList<String>)
        println(s)
        val joinTo = list.joinTo(StringBuilder(), ",")
        println(joinTo.toString())

        assertEquals(s,joinTo.toString())
    }
}